﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace schedulelist.ORM.domain
{
    public class User : EntityBase
    {
        public User() { }
        public virtual string name { get; set; }
        public virtual string login { get; set; }
        public virtual string pass { get; set; }
        public virtual string email { get; set; }
        public virtual char sex { get; set; }
        public virtual Role Role { get; set; }
        public virtual Departament Dep { get; set; }
        public virtual int cnt_created { get; set; }
        public virtual int cnt_made { get; set; }
        public User(string s1, string s2, string s3, string s4, char c, Role r, Departament d, int i, int j)
        { 
            this.name=s1;
            this.login=s2;
            this.pass=s3;
            this.email=s4;
            this.sex=c;
            this.Role = r;
            this.Dep = d;
            this.cnt_created = i;
            this.cnt_made = j;
        }
        //void selectByDepartment() { }
        //void selectByRole() { }
    }
}
